<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Database</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Database</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A class to handle all database functionality using the mysqli driver.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Kevin Fodness &lt;<a href="mailto:kevin.fodness@gmail.com">kevin.fodness@gmail.com</a>&gt;</li>
				<li><span class="field">author:</span> Spencer Hakim &lt;<a href="mailto:hakims@rpi.edu">hakims@rpi.edu</a>&gt;</li>
				<li><span class="field">author:</span> Mike Pennisi &lt;<a href="mailto:mpennisi@andrew.cmu.edu">mpennisi@andrew.cmu.edu</a>&gt;</li>
				<li><span class="field">author:</span> Aaron Ryden &lt;<a href="mailto:aryden@gmail.com">aryden@gmail.com</a>&gt;</li>
				<li><span class="field">link:</span> <a href="http://code.google.com/p/buylocalopensourcerensselaer/">http://code.google.com/p/buylocalopensourcerensselaer/</a></li>
				<li><span class="field">license:</span> <a href="http://opensource.org/licenses/gpl-license.php">GNU Public License</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_src---database---mysqli---class_Database.php.html">/src/database/mysqli/class_Database.php</a> (line <span class="field">42</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																												
												<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$dbServer</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$dbUser</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$dbPass</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$dbName</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#__destruct" title="details" class="method-name">__destruct</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#activateUser" title="details" class="method-name">activateUser</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$email</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$code</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#addActivationCode" title="details" class="method-name">addActivationCode</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#addCategory" title="details" class="method-name">addCategory</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$category</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#addUser" title="details" class="method-name">addUser</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$password</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#addUserPhone" title="details" class="method-name">addUserPhone</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$phone</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#changeUserRole" title="details" class="method-name">changeUserRole</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$role</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#createEvent" title="details" class="method-name">createEvent</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$event</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#createStore" title="details" class="method-name">createStore</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$store</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#deleteCategory" title="details" class="method-name">deleteCategory</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$categoryId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#deleteEvent" title="details" class="method-name">deleteEvent</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$event</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#deleteSessionById" title="details" class="method-name">deleteSessionById</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sessionId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#deleteStore" title="details" class="method-name">deleteStore</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$store</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#deleteUserAccount" title="details" class="method-name">deleteUserAccount</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#deleteUserPhone" title="details" class="method-name">deleteUserPhone</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$phone</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getCategories" title="details" class="method-name">getCategories</a>
											([<span class="var-type">bool</span>&nbsp;<span class="var-name">$getAll</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getCategoriesByParentId" title="details" class="method-name">getCategoriesByParentId</a>
											([<span class="var-type">int</span>&nbsp;<span class="var-name">$parentId</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">object A</span>
										<a href="#getCategoryById" title="details" class="method-name">getCategoryById</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$categoryId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getCategoryCount" title="details" class="method-name">getCategoryCount</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$categoryId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getContent" title="details" class="method-name">getContent</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$contentId</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$indent</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getCountries" title="details" class="method-name">getCountries</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">object</span>
										<a href="#getCurrentUser" title="details" class="method-name">getCurrentUser</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">object An</span>
										<a href="#getEventById" title="details" class="method-name">getEventById</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$eventId</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$getStores</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getEvents" title="details" class="method-name">getEvents</a>
											([<span class="var-type">int</span>&nbsp;<span class="var-name">$eventPage</span> = <span class="var-default">0</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getEventsByStoreId" title="details" class="method-name">getEventsByStoreId</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getEventsforOwner" title="details" class="method-name">getEventsforOwner</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">object A</span>
										<a href="#getFeaturedStore" title="details" class="method-name">getFeaturedStore</a>
											([<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getNumberOfEvents" title="details" class="method-name">getNumberOfEvents</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getNumberOfStores" title="details" class="method-name">getNumberOfStores</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getNumberOfUsers" title="details" class="method-name">getNumberOfUsers</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">object A</span>
										<a href="#getStoreById" title="details" class="method-name">getStoreById</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$getEvents</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getStoreCategories" title="details" class="method-name">getStoreCategories</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getStoreEmailAddresses" title="details" class="method-name">getStoreEmailAddresses</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getStoreFaxNumbers" title="details" class="method-name">getStoreFaxNumbers</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getStorePhoneNumbers" title="details" class="method-name">getStorePhoneNumbers</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getStoresByCategoryId" title="details" class="method-name">getStoresByCategoryId</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$categoryId</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$storePage</span> = <span class="var-default">0</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getStoresByEventId" title="details" class="method-name">getStoresByEventId</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$eventId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getStoresByQuery" title="details" class="method-name">getStoresByQuery</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$query</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$page</span>, <span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span>, <span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$dist</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getStoresforOwner" title="details" class="method-name">getStoresforOwner</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getUserByEmail" title="details" class="method-name">getUserByEmail</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$email</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">object A</span>
										<a href="#getUserById" title="details" class="method-name">getUserById</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getUsersByPage" title="details" class="method-name">getUsersByPage</a>
											([<span class="var-type">int</span>&nbsp;<span class="var-name">$page</span> = <span class="var-default">1</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">object A</span>
										<a href="#getZipByZip" title="details" class="method-name">getZipByZip</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$zip</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#isEventOwner" title="details" class="method-name">isEventOwner</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>, [<span class="var-type">object</span>&nbsp;<span class="var-name">$event</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#isStoreOwner" title="details" class="method-name">isStoreOwner</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>, [<span class="var-type">object</span>&nbsp;<span class="var-name">$store</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#linkStoreAndEvent" title="details" class="method-name">linkStoreAndEvent</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$storeId</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$eventId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#loadFile" title="details" class="method-name">loadFile</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#loadFileEach" title="details" class="method-name">loadFileEach</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#loadQuery" title="details" class="method-name">loadQuery</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#login" title="details" class="method-name">login</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$username</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$password</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#sessionIdExists" title="details" class="method-name">sessionIdExists</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sessionId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#unlinkStoreAndEvent" title="details" class="method-name">unlinkStoreAndEvent</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$storeId</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$eventId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#updateCategory" title="details" class="method-name">updateCategory</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$category</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#updateContent" title="details" class="method-name">updateContent</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$contentId</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$content</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#updateSessionTimeout" title="details" class="method-name">updateSessionTimeout</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#updateUserInfo" title="details" class="method-name">updateUserInfo</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$oldUser</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$newUser</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#updateUserPassword" title="details" class="method-name">updateUserPassword</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$oldPassword</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$newPassword</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#updateUserPhone" title="details" class="method-name">updateUserPhone</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$phone</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">63</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The constructor function.  Establishes a connection to the database.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$dbServer</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$dbUser</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$dbPass</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$dbName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dbServer</span><span class="var-description">: The server to connect to.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dbUser</span><span class="var-description">: The username to use to connect to the server.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dbPass</span><span class="var-description">: The password to use to connect to the server.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dbName</span><span class="var-description">: The name of the database to connect to.</span>			</li>
				</ul>
		
			
	</div>
<a name="method__destruct" id="__destruct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Destructor __destruct</span> (line <span class="line-number">75</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Destructor function.  Closes the connection to the database.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			__destruct
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodactivateUser" id="activateUser"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">activateUser</span> (line <span class="line-number">444</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to activate a user account.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, false on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			activateUser
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$email</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$code</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$email</span><span class="var-description">: The email address to look up.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$code</span><span class="var-description">: The activation code to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddActivationCode" id="addActivationCode"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">addActivationCode</span> (line <span class="line-number">394</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to add an activation code and send an activation email.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Returns true on success, or an error message on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			addActivationCode
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$user</span><span class="var-description">: The user to add an activation code for.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddCategory" id="addCategory"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">addCategory</span> (line <span class="line-number">2350</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to add a category.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			addCategory
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$category</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$category</span><span class="var-description">: The new Category.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddUser" id="addUser"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">addUser</span> (line <span class="line-number">293</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to add a user to the database.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, or an error message on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			addUser
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$password</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$user</span><span class="var-description">: A User object to insert into the database.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$password</span><span class="var-description">: The user's password.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddUserPhone" id="addUserPhone"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">addUserPhone</span> (line <span class="line-number">1625</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to add a user phone.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success or an error message.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			addUserPhone
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$phone</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$user</span><span class="var-description">: containing user data.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$phone</span><span class="var-description">: containing phone data.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodchangeUserRole" id="changeUserRole"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">changeUserRole</span> (line <span class="line-number">2291</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to change the role of a user.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			changeUserRole
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$role</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$userId</span><span class="var-description">: The userId of the user to update.</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$role</span><span class="var-description">: The role to give the user.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcreateEvent" id="createEvent"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">createEvent</span> (line <span class="line-number">1903</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to add an Event to the database.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, error message on fail.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			createEvent
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$event</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$user</span><span class="var-description">: User object</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$event</span><span class="var-description">: Event object</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcreateStore" id="createStore"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">createStore</span> (line <span class="line-number">1747</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to add a store to the database.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, error message on fail.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			createStore
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$store</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$user</span><span class="var-description">: User object</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$store</span><span class="var-description">: Store object</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteCategory" id="deleteCategory"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">deleteCategory</span> (line <span class="line-number">2311</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to delete a category.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			deleteCategory
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$categoryId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$categoryId</span><span class="var-description">: The categoryId of the category to delete.</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteEvent" id="deleteEvent"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">deleteEvent</span> (line <span class="line-number">1989</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to delete event.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, or triggers error</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			deleteEvent
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$event</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$event</span><span class="var-description">: containing event data.</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteSessionById" id="deleteSessionById"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">deleteSessionById</span> (line <span class="line-number">702</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to delete a row from the sessions table based on a session ID.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			deleteSessionById
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sessionId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sessionId</span><span class="var-description">: The session ID to delete.</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteStore" id="deleteStore"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">deleteStore</span> (line <span class="line-number">1885</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to delete store.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, or triggers error</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			deleteStore
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$store</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$store</span><span class="var-description">: containing store data.</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteUserAccount" id="deleteUserAccount"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">deleteUserAccount</span> (line <span class="line-number">1712</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to delete user account.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, or triggers error</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			deleteUserAccount
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$user</span><span class="var-description">: containing user data.</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteUserPhone" id="deleteUserPhone"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">deleteUserPhone</span> (line <span class="line-number">1669</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to delete a user phone.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success or an error message.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			deleteUserPhone
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$phone</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$user</span><span class="var-description">: containing user data.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$phone</span><span class="var-description">: containing phone data.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCategories" id="getCategories"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getCategories</span> (line <span class="line-number">765</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to build array of Category names/IDs from database.</p>
	<ul class="tags">
				<li><span class="field">return:</span> of all category names/IDs</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getCategories
		</span>
					([<span class="var-type">bool</span>&nbsp;<span class="var-name">$getAll</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$getAll</span><span class="var-description">: Specifies whether to get all categories, or only main ones</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCategoriesByParentId" id="getCategoriesByParentId"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getCategoriesByParentId</span> (line <span class="line-number">792</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get an array of Categories based on a parent ID.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getCategoriesByParentId
		</span>
					([<span class="var-type">int</span>&nbsp;<span class="var-name">$parentId</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$parentId</span><span class="var-description">: Corresponds to categories.parent</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCategoryById" id="getCategoryById"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getCategoryById</span> (line <span class="line-number">1147</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get a category based on a category ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Category object corresponding to the ID.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object A</span>
		<span class="method-name">
			getCategoryById
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$categoryId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$categoryId</span><span class="var-description">: The category ID to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCategoryCount" id="getCategoryCount"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getCategoryCount</span> (line <span class="line-number">852</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get the total number of stores based on a category ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> The number of stores matching the criteria.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getCategoryCount
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$categoryId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$categoryId</span><span class="var-description">: The categoryId to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetContent" id="getContent"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getContent</span> (line <span class="line-number">1226</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get page content based on a content ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Content from content.content or false on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getContent
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$contentId</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$indent</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$contentId</span><span class="var-description">: The content ID to pull.</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$indent</span><span class="var-description">: The number of spaces to indent the HTML.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCountries" id="getCountries"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getCountries</span> (line <span class="line-number">1726</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to build array of country names/IDs from database.</p>
	<ul class="tags">
				<li><span class="field">return:</span> of all country names/IDs</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getCountries
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetCurrentUser" id="getCurrentUser"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getCurrentUser</span> (line <span class="line-number">619</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get a User object containing information on the current user.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object</span>
		<span class="method-name">
			getCurrentUser
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetEventById" id="getEventById"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getEventById</span> (line <span class="line-number">2048</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get information on an event based on an event ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Event object containing all of the information.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object An</span>
		<span class="method-name">
			getEventById
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$eventId</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$getStores</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$eventId</span><span class="var-description">: The eventId to look up.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLat</span><span class="var-description">: The user's home latitude.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLng</span><span class="var-description">: The user's home longitude.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$getStores</span><span class="var-description">: Used to prevent infinite recursion.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetEvents" id="getEvents"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getEvents</span> (line <span class="line-number">2108</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get an array of event based on page number.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of Event objects.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getEvents
		</span>
					([<span class="var-type">int</span>&nbsp;<span class="var-name">$eventPage</span> = <span class="var-default">0</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$eventPage</span><span class="var-description">: The pagination to use in limit values.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLat</span><span class="var-description">: The latitude of the user's home ZIP code.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLng</span><span class="var-description">: The longitude of the user's home ZIP code.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetEventsByStoreId" id="getEventsByStoreId"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getEventsByStoreId</span> (line <span class="line-number">2199</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get events for store.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Events for store.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getEventsByStoreId
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$storeId</span><span class="var-description">: ID of Store to get events for.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetEventsforOwner" id="getEventsforOwner"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getEventsforOwner</span> (line <span class="line-number">2398</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get all the events based on the userid</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of Event objects belonging to the user.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getEventsforOwner
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$userId</span><span class="var-description">: userId of user to get events for.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetFeaturedStore" id="getFeaturedStore"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getFeaturedStore</span> (line <span class="line-number">1102</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get a featured store.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Store object containing the day's featured store.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object A</span>
		<span class="method-name">
			getFeaturedStore
		</span>
					([<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLat</span><span class="var-description">: The latitude of the user's home ZIP code.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLng</span><span class="var-description">: The longitude of the user's home ZIP code.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetNumberOfEvents" id="getNumberOfEvents"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getNumberOfEvents</span> (line <span class="line-number">2146</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get the total number of events.</p>
	<ul class="tags">
				<li><span class="field">return:</span> The number of events.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getNumberOfEvents
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetNumberOfStores" id="getNumberOfStores"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getNumberOfStores</span> (line <span class="line-number">883</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get the total number of stores.</p>
	<ul class="tags">
				<li><span class="field">return:</span> The number of stores.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getNumberOfStores
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetNumberOfUsers" id="getNumberOfUsers"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getNumberOfUsers</span> (line <span class="line-number">2275</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get the total number of users.</p>
	<ul class="tags">
				<li><span class="field">return:</span> The number of users.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getNumberOfUsers
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetStoreById" id="getStoreById"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getStoreById</span> (line <span class="line-number">999</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get information on a store based on a store ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Store object containing all of the information.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object A</span>
		<span class="method-name">
			getStoreById
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$getEvents</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$storeId</span><span class="var-description">: The storeId to look up.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLat</span><span class="var-description">: The user's home latitude.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLng</span><span class="var-description">: The user's home longitude.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$getEvents</span><span class="var-description">: Prevents infinite recursion.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetStoreCategories" id="getStoreCategories"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getStoreCategories</span> (line <span class="line-number">898</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array of Category objects for a given store ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of Category objects.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getStoreCategories
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$storeId</span><span class="var-description">: The store ID to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetStoreEmailAddresses" id="getStoreEmailAddresses"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getStoreEmailAddresses</span> (line <span class="line-number">973</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array of Email objects for a given store ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of Email objects.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getStoreEmailAddresses
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$storeId</span><span class="var-description">: The store ID to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetStoreFaxNumbers" id="getStoreFaxNumbers"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getStoreFaxNumbers</span> (line <span class="line-number">950</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array of Fax objects for a given store ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of Fax objects.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getStoreFaxNumbers
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$storeId</span><span class="var-description">: The store ID to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetStorePhoneNumbers" id="getStorePhoneNumbers"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getStorePhoneNumbers</span> (line <span class="line-number">927</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array of Phone objects for a given store ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of Phone objects.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getStorePhoneNumbers
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$storeId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$storeId</span><span class="var-description">: The store ID to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetStoresByCategoryId" id="getStoresByCategoryId"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getStoresByCategoryId</span> (line <span class="line-number">1179</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get an array of categories based on a category ID and a page.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of Store objects corresponding to the category.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getStoresByCategoryId
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$categoryId</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$storePage</span> = <span class="var-default">0</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span> = <span class="var-default">null</span>], [<span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$categoryId</span><span class="var-description">: The category ID to look up.</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$storePage</span><span class="var-description">: The pagination to use in limit values.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLat</span><span class="var-description">: The latitude of the user's home ZIP code.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLng</span><span class="var-description">: The longitude of the user's home ZIP code.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetStoresByEventId" id="getStoresByEventId"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getStoresByEventId</span> (line <span class="line-number">2226</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get stores for event.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Stores for event.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getStoresByEventId
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$eventId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$eventId</span><span class="var-description">: ID of event to get stores for.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetStoresByQuery" id="getStoresByQuery"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getStoresByQuery</span> (line <span class="line-number">1341</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get an array of stores based on a search query.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of Store objects.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getStoresByQuery
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$query</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$page</span>, <span class="var-type">float</span>&nbsp;<span class="var-name">$userLat</span>, <span class="var-type">float</span>&nbsp;<span class="var-name">$userLng</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$dist</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$query</span><span class="var-description">: The search query to use.</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$page</span><span class="var-description">: The page number to use when limiting the query.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLat</span><span class="var-description">: The latitude of the user's home zip code.</span>			</li>
					<li>
				<span class="var-type">float</span>
				<span class="var-name">$userLng</span><span class="var-description">: The longitude of the user's home zip code.</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$dist</span><span class="var-description">: The maximum distance to search.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetStoresforOwner" id="getStoresforOwner"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getStoresforOwner</span> (line <span class="line-number">2370</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get all the stores based on the userid</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of Store objects belonging to the user.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getStoresforOwner
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$userId</span><span class="var-description">: userId of user to get stores for.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetUserByEmail" id="getUserByEmail"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getUserByEmail</span> (line <span class="line-number">1283</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get user information based on an email address.</p>
	<ul class="tags">
				<li><span class="field">return:</span> A User object on success or false on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getUserByEmail
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$email</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$email</span><span class="var-description">: The email address to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetUserById" id="getUserById"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getUserById</span> (line <span class="line-number">718</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get information on a user based on a user ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> User object.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object A</span>
		<span class="method-name">
			getUserById
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$userId</span><span class="var-description">: The user ID to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetUsersByPage" id="getUsersByPage"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getUsersByPage</span> (line <span class="line-number">2253</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get an array of users based on a page.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of User objects corresponding to the page.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getUsersByPage
		</span>
					([<span class="var-type">int</span>&nbsp;<span class="var-name">$page</span> = <span class="var-default">1</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$page</span><span class="var-description">: The pagination to use in limit values.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetZipByZip" id="getZipByZip"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getZipByZip</span> (line <span class="line-number">1310</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to get a ZIP code object based on a ZIP code.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Zip object populated with information from the DB.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object A</span>
		<span class="method-name">
			getZipByZip
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$zip</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$zip</span><span class="var-description">: The ZIP code to look up.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodisEventOwner" id="isEventOwner"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">isEventOwner</span> (line <span class="line-number">2165</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Determines whether a user is an event owner.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, false on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			isEventOwner
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>, [<span class="var-type">object</span>&nbsp;<span class="var-name">$event</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$userId</span><span class="var-description">: The userID of the user to check.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$event</span><span class="var-description">: The event to check if user is owner of (optional)</span>			</li>
				</ul>
		
			
	</div>
<a name="methodisStoreOwner" id="isStoreOwner"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">isStoreOwner</span> (line <span class="line-number">822</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Determines whether a user is a store owner.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, false on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			isStoreOwner
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>, [<span class="var-type">object</span>&nbsp;<span class="var-name">$store</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$userId</span><span class="var-description">: The userID of the user to check.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$store</span><span class="var-description">: The store to check if user is owner of (optional)</span>			</li>
				</ul>
		
			
	</div>
<a name="methodlinkStoreAndEvent" id="linkStoreAndEvent"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">linkStoreAndEvent</span> (line <span class="line-number">2006</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to link a store with an event.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, or triggers error</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			linkStoreAndEvent
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$storeId</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$eventId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$storeId</span><span class="var-description">: of store to link.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$eventId</span><span class="var-description">: of event to link.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodloadFile" id="loadFile"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">loadFile</span> (line <span class="line-number">247</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A function to load the contents of a text file into the database raw.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			loadFile
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span><span class="var-description">: The filename to load.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodloadFileEach" id="loadFileEach"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">loadFileEach</span> (line <span class="line-number">260</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A function to load the contents of a text file into the database.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			loadFileEach
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span><span class="var-description">: The filename to load.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodloadQuery" id="loadQuery"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">loadQuery</span> (line <span class="line-number">279</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A function to load a raw SQL query.  Use ONLY for database upgrades!</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			loadQuery
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span><span class="var-description">: The SQL to execute.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodlogin" id="login"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">login</span> (line <span class="line-number">493</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to process a user login.</p>
	<ul class="tags">
				<li><span class="field">return:</span> sessionId on successful login, false on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			login
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$username</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$password</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$username</span><span class="var-description">: The username to check.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$password</span><span class="var-description">: The password to check.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsessionIdExists" id="sessionIdExists"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">sessionIdExists</span> (line <span class="line-number">603</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to determine if a session ID exists in the database or not.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on successful find, false on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			sessionIdExists
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sessionId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sessionId</span><span class="var-description">: The session ID to check in the database.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodunlinkStoreAndEvent" id="unlinkStoreAndEvent"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">unlinkStoreAndEvent</span> (line <span class="line-number">2026</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to unlink a store with an event.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, or triggers error</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			unlinkStoreAndEvent
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$storeId</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$eventId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$storeId</span><span class="var-description">: of store to unlink.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$eventId</span><span class="var-description">: of event to unlink.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateCategory" id="updateCategory"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">updateCategory</span> (line <span class="line-number">2329</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to update a category.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			updateCategory
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$category</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$category</span><span class="var-description">: The category with updated info.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateContent" id="updateContent"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">updateContent</span> (line <span class="line-number">1256</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to update page content based on a content ID.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success, error message on failure.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			updateContent
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$contentId</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$content</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$contentId</span><span class="var-description">: The content ID to pull.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$content</span><span class="var-description">: The updated content.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateSessionTimeout" id="updateSessionTimeout"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">updateSessionTimeout</span> (line <span class="line-number">584</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to update when a user's session was last active.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			updateSessionTimeout
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$userId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$userId</span><span class="var-description">: User ID number</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateUserInfo" id="updateUserInfo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">updateUserInfo</span> (line <span class="line-number">1436</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to update user information.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success or an error message.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			updateUserInfo
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$oldUser</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$newUser</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$oldUser</span><span class="var-description">: containing current data.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$newUser</span><span class="var-description">: containing updated data.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateUserPassword" id="updateUserPassword"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">updateUserPassword</span> (line <span class="line-number">1541</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to update user password.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success or an error message.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			updateUserPassword
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$oldPassword</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$newPassword</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$user</span><span class="var-description">: containing user data.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$oldPassword</span><span class="var-description">: User's current password.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$newPassword</span><span class="var-description">: User's new password.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateUserPhone" id="updateUserPhone"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">updateUserPhone</span> (line <span class="line-number">1582</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function to update a user phone number.</p>
	<ul class="tags">
				<li><span class="field">return:</span> True on success or an error message.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			updateUserPhone
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">object</span>&nbsp;<span class="var-name">$phone</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$user</span><span class="var-description">: containing user data.</span>			</li>
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$phone</span><span class="var-description">: containing phone data.</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sat, 19 Dec 2009 19:45:15 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>